package com.fowo.api.model.nav.logistics.warehouse.issu;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 物流管理-第三方仓物流-标发设置 导入导出辅助模型 */
@Getter
@Setter
public class NavLogisticsWarehouseIssuExcelPo {

  @ExcelProperty(value = "所属物流管理-API对接物流-发货设置")
  private Long parentNavLogisticsWarehouseWarehouseId;

  @ExcelIgnore
  @ExcelProperty(value = "所属物流管理-API对接物流-发货设置")
  private Long parentNavLogisticsWarehouse;

  @NotBlank(message = "转FBA配送实际承运人不能为空")
  @Size(max = 50, message = "转FBA配送实际承运人长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*转FBA配送实际承运人")
  private String fbaCarrier;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "承运商")
  private String carrierName;

  @ExcelIgnore
  @ExcelProperty(value = "承运商")
  private Long carrier;

  @Size(max = 50, message = "配送服务长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "配送服务")
  private String deliveryService;

  @Size(max = 50, message = "查询地址长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "查询地址")
  private String searchAddress;
}
